<?php
	
namespace app\api\controller\v2;
use app\api\model\User;
use think\controller;
use think\Response;


class UserController{
	public function read($id = 0){
		
			$user = User::geesst($id,'profile');
			if($user){
				return json($user);
			}else{
				//return json(['error' => '用户不存在'] ,404);
				abort(404,'用户不存在!');
			}
		
	}
}	

?>